package com.powernode.service.impl;

import com.powernode.mapper.LendMapper;
import com.powernode.pojo.Lend;
import com.powernode.service.LendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 繁寂
 * @version 1.0
 * @since 1.0
 */
@Service
public class LendServiceImpl implements LendService {

    @Autowired
    private LendMapper lendMapper;
    @Override
    public List<Lend> selLendAll() {
        return lendMapper.selLendAll();
    }

    @Override
    public List<Lend> selLendByUserName(String userName) {
        return lendMapper.selLendByUserName(userName);
    }

    @Override
    public Integer insertLend(Lend lend) {
        return lendMapper.insertLend(lend);
    }

    @Override
    public Integer updateLend(Lend lend) {
        return lendMapper.updateLend(lend);
    }

    @Override
    public Integer deleteLend(Lend lend) {
        return lendMapper.deleteLend(lend);
    }
}
